﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="lottery_input.aspx.cs" Inherits="lottery_input" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link type="text/css" rel="stylesheet" href="CSS/rte.css" />
    <link type="text/css" rel="Stylesheet" href="CSS/wxm_appmsg_list17e4f5.css" />
    <link type="text/css" rel="Stylesheet" href="CSS/emoji.css" />
    <link type="text/css" rel="Stylesheet" href="CSS/hello.css" />
    <link type="text/css" rel="Stylesheet" href="CSS/ueditor.css" />
    <link type="text/css" rel="Stylesheet" href="CSS/codemirror.css" />
    <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js"></script>
    <script type="text/javascript" src="js/jquery.rte.js"></script>
    <script type="text/javascript">
        function titlechange() {
            document.getElementById("title").innerText = document.getElementById("ContentPlaceHolder1_textbox1").value;
            document.getElementById("title").innerHTML = document.getElementById("ContentPlaceHolder1_textbox1").value;
        }

        </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="container-wrapper">
        <div  id="main" class="container" style="width:960px;">
            <div class="containerBox">
                <div class="boxHeader"><h2>优惠活动</h2></div>
                <div class="content" style="width:958px;padding:0px;" >
                <div class="z oh msg-edit">
                    <div class="left msg-preview">
                    <div class="msg-item-wrapper">
                        <div class="msg-item appmsgItem">
                            <h4 id="title" class="msg-t">标题</h4>
                            <div class="cover" runat="server" id="defaulttip" visible="true">
                                <p class="default-tip">封面图片</p>
                    
                            </div>
                            <asp:Image Visible="false" ID="img1" runat="server" ImageAlign="bottom" width="320px" style="margin:15px;width:320px"  />
                        </div>
            
                    </div>
                </div>
                    <div style="margin-top: 31px;" class="msg-edit-area">
                        <div class="rel msg-editer-wrapper">
                            <div class="msg-editer">
                                <label class="block">抽奖标题：<asp:RequiredFieldValidator ValidationGroup="ValidataGroup1" ID="RequiredFieldValidator6" runat="server" ControlToValidate="textbox1" ErrorMessage="标题不能为空" ForeColor="Red" Font-Size="Small" /></label>
                                <asp:TextBox ID="textbox1" placeholder="抽奖标题请控制在25个汉字以内" CssClass="msg-input" runat="server" Text="" />
                                <label class="block">封面</label>
                                <div>
                                    <asp:FileUpload ID="FileUpload1" CssClass="msg-input" runat="server" Width="254px" />
                                    <asp:Button ID="Button2" style="padding:2px 8px;background-color:#fff;border:1px solid #d3d3d3;color:#666; height: 33px; width: 50px;" runat="server" Text="上传" onclick="Button2_Click" />
                                </div>
                                <label class="block">抽奖预计人数：<asp:RequiredFieldValidator ValidationGroup="ValidataGroup1" ID="RequiredFieldValidator1" runat="server" ControlToValidate="textbox2" ErrorMessage="预计人数不能为空" ForeColor="Red" Font-Size="Small" /></label>
                                <asp:TextBox ID="textbox2" CssClass="msg-input" runat="server" Text="" />
                                <label class="block">一等奖奖品名称：<asp:RequiredFieldValidator ValidationGroup="ValidataGroup1" ID="RequiredFieldValidator2" runat="server" ControlToValidate="textbox3" ErrorMessage="奖品名称不能为空" ForeColor="Red" Font-Size="Small" />
                                </label>
                                <asp:TextBox ID="textbox3" placeholder="请输入已经在平台录入的产品名称，否则无效" CssClass="msg-input" runat="server" Text="" />
                                <label class="block">一等奖奖品数量：<asp:RequiredFieldValidator ValidationGroup="ValidataGroup1" ID="RequiredFieldValidator3" runat="server" ControlToValidate="textbox4" ErrorMessage="数量不能为空" ForeColor="Red" Font-Size="Small" />
                                </label>
                                <asp:TextBox ID="textbox4" CssClass="msg-input" placeholder="奖品数量请填写整数，否则无效" runat="server" Text="" />
                                <label class="block">二等奖奖品名称：<asp:RequiredFieldValidator ValidationGroup="ValidataGroup1" ID="RequiredFieldValidator4" runat="server" ControlToValidate="textbox5" ErrorMessage="奖品名称不能为空" ForeColor="Red" Font-Size="Small" />
                                </label> 
                                <asp:TextBox ID="textbox5" placeholder="请输入已经在平台录入的产品名称，否则无效" CssClass="msg-input" runat="server" Text="" />
                                <label class="block">二等奖奖品数量：<asp:RequiredFieldValidator ValidationGroup="ValidataGroup1" ID="RequiredFieldValidator5" runat="server" ControlToValidate="textbox6" ErrorMessage="数量不能为空" ForeColor="Red" Font-Size="Small" />
                                </label>
                                <asp:TextBox ID="textbox6" CssClass="msg-input" placeholder="奖品数量请填写整数，否则无效" runat="server" Text="" />
                                <label class="block">三等奖奖品名称：<asp:RequiredFieldValidator ValidationGroup="ValidataGroup1" ID="RequiredFieldValidator7" runat="server" ControlToValidate="textbox7" ErrorMessage="奖品名称不能为空" ForeColor="Red" Font-Size="Small" />
                                </label>
                                <asp:TextBox ID="textbox7" placeholder="请输入已经在平台录入的产品名称，否则无效" CssClass="msg-input" runat="server" Text="" />
                                <label class="block">三等奖奖品数量：<asp:RequiredFieldValidator ValidationGroup="ValidataGroup1" ID="RequiredFieldValidator8" runat="server" ControlToValidate="textbox8" ErrorMessage="数量不能为空" ForeColor="Red" Font-Size="Small" />
                                </label>
                                <asp:TextBox ID="textbox8" CssClass="msg-input" placeholder="奖品数量请填写整数，否则无效" runat="server" Text="" />
                                <label class="block">开始时间：
                                    
                                    <asp:DropDownList ID="DropDownList1" runat="server" DataSource="<%#ItemList_year %>" />
                                    <asp:DropDownList ID="DropDownList2" runat="server" DataSource="<%#ItemList_month %>"/>
                                    <asp:DropDownList ID="DropDownList3" runat="server" DataSource="<%#ItemList_day %>"/>
                                    <asp:DropDownList ID="DropDownList4" runat="server" DataSource="<%#ItemList_hour %>"/>
                                    <asp:DropDownList ID="DropDownList5" runat="server" DataSource="<%#ItemList_minute %>"/>
                                    <asp:DropDownList ID="DropDownList6" runat="server" DataSource="<%#ItemList_second %>"/>
                                </label>
                                
                                <label class="block"> 结束时间：
                                    <asp:DropDownList ID="DropDownList7" runat="server" DataSource="<%#ItemList_year %>"/>
                                    <asp:DropDownList ID="DropDownList8" runat="server" DataSource="<%#ItemList_month %>"/>
                                    <asp:DropDownList ID="DropDownList9" runat="server" DataSource="<%#ItemList_day %>"/>
                                    <asp:DropDownList ID="DropDownList10" runat="server" DataSource="<%#ItemList_hour %>"/>
                                    <asp:DropDownList ID="DropDownList11" runat="server" DataSource="<%#ItemList_minute %>"/>
                                    <asp:DropDownList ID="DropDownList12" runat="server" DataSource="<%#ItemList_second %>"/>
                                </label>
                                
                                    
                                <label class="block" >抽奖活动：</label>
                                <asp:TextBox ID="textbox9" runat="server" Text="" placeholder="抽奖规则请控制在300个汉字以内" CssClass="msg-input" TextMode="MultiLine"  Wrap="true" Height="184px" Width="480px"></asp:TextBox>
                            </div>
                            <div class="oh z shadow">
                            <span class="left ls"></span>
                            <span class="right rs"></span>
                            </div>
                            <span class="abs msg-arrow a-out" style="margin-top: 0px;"></span>
                            <span class="abs msg-arrow a-in" style="margin-top:0px; "></span>
                        </div>
                    </div>
                </div>
                    <p class="tc msg-btn">
                    <asp:Button ID="button3" CssClass="btnGreen" runat="server" Text="提交" onclick="button1_Click" ValidationGroup="ValidataGroup1" />
                </p>
                </div>
                <div class="clr"></div>
            </div>
        </div>
    </div>
</asp:Content>

